const fs = require("fs");
const path = require("path");
let res = fs.readFileSync("./info.json", "utf-8");
const newRes = JSON.parse(res);
// console.log(newRes);
const random = Math.floor(Math.random() * newRes.length);
console.log(newRes[random]);
// console.log(newRes[random].count);
newRes[random].count++;
fs.writeFileSync(path.join(__dirname,"./info.json"), JSON.stringify(newRes) + "");
